from django.db import models
from utils.models import BaseModel
from orders.models import OrderInfo
# Create your models here.

class Payment(BaseModel):
    order = models.ForeignKey(OrderInfo, verbose_name='订单', on_delete=models.CASCADE)
    trade_id = models.CharField(verbose_name='支付编号', unique=True, blank=True, max_length=100, null=True)

    class Meta:
        db_table = 'tb_payment'
        verbose_name = '支付信息'
        verbose_name_plural = verbose_name
